export class GeneratorFactory {
    constructor() {
        console.log("GeneratorFactory::constructor --> create an object");
    }
    static* createGenerator(array, index = 0) {
        for (let i = index; i < array.length; i++) {
            yield array[i]();
        }
    }
}
